//
//  OneAuthorizeCodeModel.m
//  lTTheOne
//
//  Created by sy on 2025/7/26.
//

#import "OneAuthorizeCodeModel.h"

@implementation OneAuthorizeCodeModel
+(NSArray *)bg_unionPrimaryKeys{
    return @[@"account"];
}

@end


@implementation OneAuthorizeConfigModel
- (instancetype)initWithAuthorizeCode:(authorizeCode)codeType
{
    self = [super init];
    if (self) {
        self.codeType = codeType;
    }
    return self;
}

- (NSString *)title_ch{
    switch (self.codeType) {
        case chatCode:
            return @"聊天授权码";
            break;
        case momentCode:
            return @"动态授权码";
            break;
        case homeCode:
            return @"";
            break;
        case learningCode:
            return @"";
            break;
        case workingCode:
            return @"";
            break;
        case finalStage:
            return @"";
            break;
        case partyCode:
            return @"";
            break;
        case travelCode:
            return @"";
            break;
        default:
            return @"";
            break;
    }
}

- (NSString *)title_en{
    switch (self.codeType) {
        case chatCode:
            return @"Chat Authorization Code";
            break;
        case momentCode:
            return @"Vlog Authorization Code";
            break;
        case homeCode:
            return @"";
            break;
        case learningCode:
            return @"";
            break;
        case workingCode:
            return @"";
            break;
        case finalStage:
            return @"";
            break;
        case partyCode:
            return @"";
            break;
        case travelCode:
            return @"";
            break;
        default:
            return @"";
            break;
    }
}

- (NSString *)desc_ch{
    return @"请牢授权码，如出现遗忘仅能通过软件恢复设置进行清除。";
}
- (NSString *)desc_en{
    return @"Please hold the authorization code firmly. If you forget it, you can only clear it by restoring the factory settings by software.";
}

- (NSString *)setCode_ch{
    return @"设置授权码";
}
- (NSString *)setCode_en{
    return @"Set authorization code.";
}

- (NSString *)checkCode_ch{
    return @"请输授权码";
}
- (NSString *)checkCode_en{
    return @"Please enter the authorization code.";
}
-(NSString *)placeHoldStr{
    return @"授权码为全数字组合不支持符号";
}
@end
